#ifndef COMPRESSDIALOG_H
#define COMPRESSDIALOG_H

#include <QDialog>
#include "Transcode.h"
#include <QAbstractButton>
#include<QProgressDialog>
namespace Ui {
class CompressDialog;
}

class CompressDialog : public QDialog,public VideoCompressCallBack
{
    Q_OBJECT

public:
    explicit CompressDialog(QWidget *parent = nullptr);
    ~CompressDialog();
    void init(int64_t rate,int fps,int width,int height,QString fileName);
    void changeCompressProcess(const double &proces);
private slots:
    void on_buttonBox_accepted();


    void on_pushButton_clicked();

    void on_horizontalSlider_valueChanged(int value);

    void on_horizontalSlider_2_valueChanged(int value);

    void on_buttonBox_clicked(QAbstractButton *button);

private:
    Ui::CompressDialog *ui;
    QString filePath;
    QProgressDialog *pd;
};

#endif // COMPRESSDIALOG_H
